package zuoye01;
import java.util.Scanner;
public class Sum {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入第一个整数");
        int sum1=scanner.nextInt();
        System.out.println("请输入第二个整数");
        int sum2=scanner.nextInt();
        int num=sum1+sum2;
        int dif=sum1-sum2;
        System.out.println("两数之和："+num);
        System.out.println("两数之差："+dif);
    }
}
